// 引入封装好的request对象
import request from '@/request/request.js'

function queryAllRoomByFloor(data) {
  return request.get('/api/room/findCwsyBedVo', { params: data })
}

// -:床位管理
function queryBedInfo(data) {
  return request.post('/api/bedDetails/queryBedInfo', data)
}

function queryKxcwByRoomNo(data) {
  return request.get('/api/bed/queryKxcwByRoomNo', { params: data })
}

// -调换床位
function exchangeBedInfo(data) {
  return request.post('/api/bedDetails/exchangeBedInfo', data)
}

// -:删除指定的历史记录
function deleteBedDetailsById(data) {
  return request.post('/api/bedDetails/deleteBedDetailsById', data)
}
// -:修改信息
function reviseBedInfo(data){
  return request.post('/api/bedDetails/reviseBedInfo', data)
}

export {
  queryAllRoomByFloor,
  queryBedInfo,
  queryKxcwByRoomNo,
  exchangeBedInfo,
  deleteBedDetailsById,
  reviseBedInfo
}
